import 'package:json_annotation/json_annotation.dart';

part 'user.g.dart';

@JsonSerializable()
class User {
  final String? birthday;
  final String? date;
  final int? gender;
  final int? id;
  @JsonKey(name: "love_date")
  final String? loveDate;
  @JsonKey(name: "love_uid")
  final int? loveUid;
  final double? money;
  final String? name;
  final String? password;
  final String? phone;
  final int? solar;
  final String? username;
  @JsonKey(name: "vip_date")
  final String? vipDate;

  User({
    this.birthday,
    this.date,
    this.gender,
    this.id,
    this.loveDate,
    this.loveUid,
    this.money,
    this.name,
    this.password,
    this.phone,
    this.solar,
    this.username,
    this.vipDate,
  });

  factory User.fromJson(Map<String, dynamic> json) => _$UserFromJson(json);
  Map<String, dynamic> toJson() => _$UserToJson(this);
}
